
import Clipboard from "vue-clipboard3"
import { showToast } from 'vant';

//复制文字方法
export const copyText = async (text) => {

    const { toClipboard } = Clipboard();
    try {
        await toClipboard(text);
        showToast('复制成功!!')
    } catch (error) {
        console.log('error' + error);
        showToast('复制失败!!')
    }
};

